<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<body>
	<h:form>
		<p:panel header="#{translationBean.report_summary}">
			<table>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_givenname}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.name}" /></td>
				</tr>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_surname}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.familyName}" /></td>
				</tr>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_street_address}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.address}" /></td>
				</tr>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_code}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.postalCode}" /></td>
				</tr>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_city}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.city}" /></td>
				</tr>
				<tr>
					<td><b><h:outputText
								value="#{translationBean.patient_data_country}" /></b></td>
					<td>&nbsp;</td>
					<td><h:outputText value="#{myBean.selectedPatient.country}" /></td>
				</tr>
			</table>
		</p:panel>
		<p:panel
			header="You must enter the Patient Confirmation for your Organization to access the Patient data">
			<p:outputPanel id="customPanel">
				<td><b><h:outputText value="Purpose of use" /></b></td>
				<p:selectOneRadio id="customRadio"
					value="#{confirmationBean.purposeOfUse}" layout="custom">
					<f:selectItem itemLabel="Healthcare Facility (TREATMENT)"
						itemValue="TREATMENT" />
					<f:selectItem itemLabel="Emergency Department (EMERGENCY)"
						itemValue="EMERGENCY" />
				</p:selectOneRadio>
				<h:panelGrid columns="2">
					<p:radioButton id="opt1" for="customRadio" itemIndex="0" />
					<h:outputLabel for="opt1" value="Healthcare Facility (TREATMENT)" />
					<p:radioButton id="opt2" for="customRadio" itemIndex="1" />
					<h:outputLabel for="opt2" value="Emergency Department (EMERGENCY)" />
				</h:panelGrid>
			</p:outputPanel>
			<p:outputPanel id="customPanel2">
				<td><b><h:outputText
							value="Do you agree with the privacy statement?" /></b></td>
				<p:selectOneRadio id="customRadio2"
					value="#{confirmationBean.confirm}" layout="custom">
					<f:selectItem itemLabel="Yes" itemValue="Yes" />
					<f:selectItem itemLabel="No" itemValue="No" />
				</p:selectOneRadio>
				<h:panelGrid columns="2">
					<p:radioButton id="opt11" for="customRadio2" itemIndex="0" />
					<h:outputLabel for="opt11" value="Yes" />
					<p:radioButton id="opt22" for="customRadio2" itemIndex="1" />
					<h:outputLabel for="opt22" value="No" />
				</h:panelGrid>
			</p:outputPanel>
			<p:commandButton id="submitButton" value="Confirm" ajax="false"
				action="/viewPrescriptions.xhtml?faces-redirect=true&amp;javax.portlet.faces.PortletMode=view&amp;javax.portlet.faces.WindowState=normal">
				<f:setPropertyActionListener value="#{confirmationBean.purposeOfUse}"
					target="#{myBean.purposeOfUseForPS}" />
			</p:commandButton>
			
			<p:commandButton id="cancelButton" value="Cancel" ajax="false"
				action="/view1.xhtml?javax.portlet.faces.PortletMode=view&amp;javax.portlet.faces.WindowState=normal" />
		</p:panel>
	</h:form>
</body>
</html>